package com.fxd.service.impl;

import com.fxd.dao.accountDao;
import com.fxd.domain.account;
import com.fxd.service.accountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @auther fuxudong
 * @date 2021/2/7 - 12:10
 */
@Service("accountServiceImpl")
public class accountServiceImpl implements accountService {

    @Autowired
    private accountDao accountDao;

    @Override
    public List<account> findAll() {
        List<account> accounts = accountDao.findAll();
        return accounts;
    }

    @Override
    public void saveAccount(account account) {
        accountDao.saveAccount(account);
    }
}
